<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript">
        var a=0,b=0,c=0;
        for(var i = 100;i<1000;i++){
            a=i%10;
            b=parseInt((i/10)%10);
            c=parseInt(i/100);
            if(i == a*a*a + b*b*b + c*c*c ){
                document.write("水仙花数："+ i+"<br/>");
            }
        }
    </script>
</head>
<body>

</body>
</html>